//
//  JBWUserRecordListViewTableViewCell.m
//  JBWDSK
//
//  Created by 崔志伟 on 2018/7/27.
//  Copyright © 2018年 崔志伟. All rights reserved.
//

#import "JBWUserRecordListViewTableViewCell.h"

@implementation JBWUserRecordListViewTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, MAIN_BG_VIEW_WIDTH-40-60, 44)];
        self.contentLabel.font = [UIFont systemFontOfSize:15];
        self.contentLabel.textColor = [UIColor grayColor];
        [self addSubview:self.contentLabel];
        UIButton *deleBtn = [[UIButton alloc]initWithFrame:CGRectMake(MAIN_BG_VIEW_WIDTH-40-40, 0, 40, 44)];
        [deleBtn setImage:GetImageNamed(@"sdk_login_ic_deletid") forState:UIControlStateNormal];
        [deleBtn addTarget:self action:@selector(deleBtnAction) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:deleBtn];
        
        UIView *bottomLine = [[UIView alloc]initWithFrame:CGRectMake(10, 44, MAIN_BG_VIEW_WIDTH-60, 1)];
        bottomLine.backgroundColor = JBW_HEX_COLOR(0xF2F2F6);
        [self addSubview:bottomLine];
    }
    return self;
}

- (void)deleBtnAction{
    if (self.deleUserRecordBlock) {
        self.deleUserRecordBlock(self);
    }
    
}

@end
